/**
 * 
 */
package cn.sundat.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.transaction.annotation.Transactional;

import cn.sundat.dao.FriendLinkDao;
import cn.sundat.model.FriendLink;
import cn.sundat.model.SysCfg;

/**
 * @author XIN
 *
 */
@Transactional
public class FriendLinkServiceImpl implements FriendLinkService {
	
	@Resource(name="friendLinkDao")
	FriendLinkDao friendLinkDao;
	public void addFriendLink(FriendLink friendLink) {
		// TODO Auto-generated method stub
		friendLinkDao.addFriendLink(friendLink);
		
	}
	public List<FriendLink> findFriendLinkByPage(int nowPage, int pageSize) {
		// TODO Auto-generated method stub
		return friendLinkDao.findFriendLinkByPage(nowPage, pageSize);
	}
	public int findCount() {
		// TODO Auto-generated method stub
		return friendLinkDao.findCount();
	}
	public List<FriendLink> findFriendLinkBykey(String keyWords) {
		// TODO Auto-generated method stub
		return friendLinkDao.findFriendLinkBykey(keyWords);
	}
	public boolean delBatch(String batchList) {
		// TODO Auto-generated method stub
		return friendLinkDao.delBatch(batchList);
	}
	public void editFriendLink(FriendLink friendLink) {
		// TODO Auto-generated method stub
		friendLinkDao.editFriendLink(friendLink);
		
	}
	public List<FriendLink> findAllFriendLink() {
		// TODO Auto-generated method stub
		return friendLinkDao.findAllFriendLink();
	}
	public List<FriendLink> findFriendLinkById(int id) {
		// TODO Auto-generated method stub
		return friendLinkDao.findFriendLinkById(id);
	}
	public List<SysCfg> findAllInfo() {
		// TODO Auto-generated method stub
		return friendLinkDao.findAllInfo();
	}
	public void editSysInfo(SysCfg sysCfg) {
		// TODO Auto-generated method stub
		friendLinkDao.editSysInfo(sysCfg);
		
	}

}
